
// 管理项目用户相关接口
import service from "./service";
// 用户相关请求地址
const API = {
  GET_SPU_URL: '/products/spu/all',
  ADD_SPU_URL: '/products/spu',
  // ADD_SPU_URL: '/attribute/add',

}
export const getSpuAPI = () => service.get(API.GET_SPU_URL)
export const updateSpuAPI = (id, data) => service.put(API.ADD_SPU_URL + `/${id}`, data)
export const addspuAPI = (data) => service.post(API.ADD_SPU_URL, data)
export const deleteSPUAPI = (id) => service.delete(API.ADD_SPU_URL + `/${id}`)
